#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([libcomcom],[dev])
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(libcomcom/lcc/config.hpp)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)


# Checks for programs.
AC_PROG_CXX
AC_PROG_LIBTOOL

# Checks for libraries.
AC_CHECK_LIB(pthread, pthread_create)

# Host speciffic checks
AC_CANONICAL_HOST
case "${host_os}" in
    *linux*)
        AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS])
        CPPFLAGS="-D_REENTRANT $CPPFLAGS -Wno-variadic-macros"
        ;;
    *)
        AC_MSG_ERROR([Not supported os: $host.])
        ;;
esac

# Checks for header files.
AC_HEADER_STDC

# Use c++ in subsequent tests
AC_LANG(C++)

AC_OUTPUT(Makefile libcomcom/Makefile examples/Makefile)
